home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / ip / manage / snmp / kip / ether.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-01-17  |  885 b   |  35 lines

  1. /*
  2.  *  C language version (c) 1984, Stanford Univ. SUMEX project.
  3.  *  May be used but not sold without permission.
  4.  *
  5.  *  (c) 1986, Kinetics, Inc.
  6.  *  May be used but not sold without permission.
  7.  *
  8.  *  $Header: ether.h,v 4.1 88/11/01 19:47:59 sw0l Exp $
  9.  */
  10.  
  11. /*
  12.  * Ethernet address - 6 octets
  13.  */
  14. struct ether_addr {
  15.     u_char    ether_addr_octet[6];
  16. };
  17.  
  18. /*
  19.  * Structure of a 10Mb/s Ethernet header.
  20.  */
  21. struct    ether_header {
  22.     struct    ether_addr ether_dhost;
  23.     struct    ether_addr ether_shost;
  24.     u_short    ether_type;
  25. };
  26.  
  27. #define    ETHERTYPE_PUPTYPE    0x0200        /* PUP protocol */
  28. #define    ETHERTYPE_IPTYPE    0x0800        /* IP protocol */
  29. #define ETHERTYPE_ARPTYPE    0x0806        /* Addr. resolution protocol*/
  30. #define ETHERTYPE_ETHERTALK     0x809b          /* Apple Ethertalk encap. */
  31. #define ETHERTYPE_AARPTYPE      0x80F3          /* Apple Addr. res. protocol */
  32.  
  33. #define    ETHERMTU    1500
  34. #define    ETHERMIN    (60-14)
  35.